<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.upload_song" CodeFile="upload_song.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<form id=uploadImageForm action="" method=post runat="server">
<table height="100%" cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
	<tr>
		<td class="page_title" colspan="3"><asp:label id="lblUploadTitle" runat="server">Upload New Clips/Songs</asp:label></td>
	</tr>     
  <tr>
    <td class=main_table_border valign=top height="100%">
			<div class="content">	
        <table cellSpacing=0 cellPadding=0 width=100% border=0 class="main_text_form">
          <tr>
            <td align=left>
							<b><asp:label id="lblMax" runat="server">Amend your current media files. 3 Files Maximum!</asp:label></b>
						</td>
					</tr>
          <tr>
            <td align=center height="16"><IMG class=spacer_line height=1 src="images/spacer.gif" width="100%"></td></tr>
          <tr>
            <td> 
							<asp:literal id="litText" runat="server">
							Acceptable format: AVI, MPG, MP3 or WMA with Maximum size of 5 MB.<br>
							Please respect our <A href="terms.aspx" class="main_text">Media policy</a> and do not upload files containing nudity,<br>
							violent or offensive material, or copyrighted songs.
							<br><br>
							<a href="http://www.download.com/dBpowerAmp-Music-Converter/3000-2140-10042534.html?part=dl-dBpowerAm&subj=dl&tag=button" target="_blank">dBpowerAmp Music Converter</a><br>
							Often called the Swiss Army Knife of audio! You can use this free and easy software to convert your music for 2Bmates.
							</asp:literal><br />&nbsp;					
						</td>
          </tr>
          <tr>
						<td id=error valign=top align=left><asp:validationsummary id=ValidationSummary1 runat="server" cssclass="val_summary" width="248px" displaymode="List" forecolor="#F04C03" Height="32px"></asp:validationsummary></td>
					</tr>
          <tr>
            <td>
							<asp:label id="lblMessage" runat="server" visible="False" cssclass="val_summary">You reached the maximum media uploads limit. Please delete some file in order to upload new one</asp:label> 
							<asp:label id="lblName" runat="server" Visible="True" >File Name: </asp:label>
							<asp:textbox id=txtSongName runat="server" cssclass="mail_field" style="margin:1px;"></asp:TextBox>
							<asp:requiredfieldvalidator id=rvTxtSongName runat="server" ControlToValidate="txtSongName" Display="None" ErrorMessage="Please fill out song name"></asp:RequiredFieldValidator><br>
            </TD>
          </TR>
          <tr>
						<td>
							<img src="images/spacer.gif" height="1" width="52"><input class="mail_field" id=fldFileUpload style="WIDTH: 273px;margin:1px;HEIGHT: 18px;" type=file size=37 runat="server" name="fldFileUpload">
              <asp:button id=btnUpload onmouseover=ButtonMouseOver(this); onmouseout=ButtonMouseOut(this); runat="server" cssclass="btn" text="Upload" onclick="btnUpload_Click"></asp:button>
              <asp:customvalidator id=valFileFormat runat="server" onservervalidate="validateFile" controltovalidate="fldFileUpload" display="None" errormessage="Please choose a file in the correct format"></asp:customvalidator>
              <asp:requiredfieldvalidator id=rvFldFileUpload runat="server" controltovalidate="fldFileUpload" display="None" errormessage="Please browse clip/song"></asp:requiredfieldvalidator>
						</td>
          </tr>
          <tr>
            <td><asp:button id=btnSkip onmouseover=ButtonMouseOver(this); onmouseout=ButtonMouseOut(this); runat="server" CssClass="btn" Width="100px" Text="Skip for now" Visible="False" CausesValidation="False"></asp:button></td>
					</tr>
				</table>
			</div>	
		</td>		
		<!-- BEGIN SKYSCRAPER ADVERTISEMENT -->	
		<!--
		<td class="small" width="10">&nbsp;</td>
		<td class="border_adv" vAlign="top" width="203" height="100%">
			<table cellSpacing="1" cellPadding="0" width="100%" border="0">
				<tr>
					<td class="small" width="10">&nbsp;</td>
					<td class="advertisement" width="193"><asp:Literal id="litSkyscraperAdvertisement" runat=server></asp:literal></td>
				</tr>
			</table>
		</td>-->
		<!-- END SKYSCRAPER ADVERTISEMENT -->	
	</tr>
	<tr>
		<td colspan="3"><asp:literal id=litSpacer runat="server"></asp:literal></td>
	</tr>
  <tr>
    <td colSpan=3 height="100%">
			<asp:table id=tblPhotos runat="server" Width="100%" height="100%" CellSpacing="0" CellPadding="0">
				<asp:tablerow>
					<asp:tablecell cssclass="page_secondary_title">
						<asp:label id="lblUploadedTitle" runat="server">Uploaded Clips/Songs</asp:label>
					</asp:tablecell>
				</asp:tablerow>
				<asp:TableRow>
					<asp:tablecell cssclass="main_table_border" height="100%">
						<div class="content">	
							<asp:Label runat="server" ID="lblNoImage" cssclass="main_text">Currently there are no uploaded clips/songs.</asp:Label>
							<asp:DataList runat="server" Width="100%" ShowFooter="False" BorderWidth="0px" ShowHeader="False" CssClass="data_list" HorizontalAlign="Left" RepeatColumns="3" RepeatDirection="Horizontal" ID="dlPictures" CellPadding="0">
								<itemstyle horizontalalign="Left" width="33%" verticalalign="Top"></itemstyle>
								<ItemTemplate>
									<table cellSpacing="0" cellPadding="0" width="230" border="0" class="main_text">
										<tr>
											<td class="col_image" align=center vAlign="top" width="73" rowSpan="4"><a id="hlLive" CssClass="small_image" href='#iv' onclick="javascript: popWin('<%# DataBinder.Eval(Container.DataItem, "PlayMusicURL") %>')"><IMG src="images/both_black.gif" align=center alt="<%# DataBinder.Eval(Container.DataItem, "SongName") %>" border="0"></a></td>
										</tr>
										<tr>
											<td height="25" valign=top><asp:Label id="lblSongTitle" runat="server"><b><%# DataBinder.Eval(Container.DataItem, "SongName") %></b></asp:Label></td>
										</tr>
										<tr>
											<td height="25" valign=top><a id="Hyperlink1" class="main_text_bold" href='#iv' onclick="javascript: popWin('<%# DataBinder.Eval(Container.DataItem, "PlayMusicURL") %>')">Play clip/song</a></td>
										</tr>	
										<tr>
											<td height="25" valign=top><asp:LinkButton id=lbRemove runat="server" CssClass="main_text_bold" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "SongID") %>' CommandName="Remove" CausesValidation="False">Remove</asp:LinkButton></td>
										</tr>																																
									</TABLE>
								</ItemTemplate>
							</asp:DataList>
						</div>					
					</asp:TableCell>
				</asp:TableRow>
			</asp:table>
		</td>
	</tr>
</table>
</form>
